# 只能给指定的的对象设置属性
class Test1:
    pass

t=Test1()
print(Test1.__dict__)

class Test02:
    __slots__ = ["attr","name"]

t1=Test02()
print(Test02.__dict__)